Conversation
(../trunk-generic/ rev 29.1.1)
(../trunk-generic/ rev 32.1.1)
(../trunk-generic/ rev 32.1.2)
- Update travis.yml to 8.0
Only hide button instead of renaming it
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
… of sale_cancel_reason module
* [MIG] sale_cancel_reason Migration to 10.0 * Follow coding standard * Convert test to unittest2
Currently translated at 100.0% (23 of 23 strings) Translation: sale-workflow-10.0/sale-workflow-10.0-sale_cancel_reason Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-10-0/sale-workflow-10-0-sale_cancel_reason/pt/
Currently translated at 100.0% (23 of 23 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_cancel_reason Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_cancel_reason/de/
Currently translated at 100.0% (23 of 23 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_cancel_reason Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_cancel_reason/zh_CN/
Currently translated at 95.7% (22 of 23 strings) Translation: sale-workflow-12.0/sale-workflow-12.0-sale_cancel_reason Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_cancel_reason/es_CL/
Currently translated at 100.0% (18 of 18 strings) Translation: sale-workflow-17.0/sale-workflow-17.0-sale_cancel_reason Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_cancel_reason/sv/
be53939 to
b95a32c
Compare
b95a32c to
93733e9
Compare
|
/ocabot migration sale_cancel_reason |
| @@ -16,17 +16,17 @@ class SaleOrder(models.Model): | |||
| copy=False, | |||
| ) | |||
|
|
|||
| def _show_cancel_wizard(self): | |||
| for order in self: | |||
| if not order._context.get("disable_cancel_warning"): | |||
There was a problem hiding this comment.
@NachoAlesLopez You removed this functionality to avoid the wizard ?
There was a problem hiding this comment.
It appears that the latest version removed the method and context to show the cancel wizard or cancel the order straight away. I've now re-added the condition in the view based on the same context key from version 18.0.
c9a26ad to
ca8e716
Compare
ca8e716 to
3134141
Compare
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thanks for the migration, nice clean work overall.
One thing I noticed: wizard/mass_cancel_orders.py is missing the license header (copyright + AGPL-3 notice) that all the other Python files have. Small fix but worth adding for consistency.
Everything else looks good to me -- the disable_cancel_warning context approach for toggling between the native and custom cancel buttons is clean, security ACLs are properly scoped, the action_draft reset of the cancel reason makes sense, and the tests cover the main flows well (single cancel, mass cancel, and draft reset).
| @@ -0,0 +1,13 @@ | |||
| from odoo import fields, models | |||
There was a problem hiding this comment.
Missing license header -- all other .py files in this module have the Copyright ... / License AGPL-3.0 or later block. Could you add it here as well?
|
This PR has the |
3134141 to
09e5c57
Compare
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thanks for squashing -- the migration looks clean.
My earlier note still applies: wizard/mass_cancel_orders.py is the only Python file without the license header (copyright + AGPL-3 notice). Not blocking, but would be nice to add for consistency with the rest of the module.
Otherwise everything is solid: manifest, security, views, tests, and the cancel-button toggling via disable_cancel_warning context all look good for 19.0.
09e5c57 to
2e33b09
Compare
2e33b09 to
3e76d24
Compare
| # © 2013 Guewen Baconnier, Camptocamp SA | ||
| # © 2022 Landoo Sistemas de Informacion SL | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).3 |
There was a problem hiding this comment.
Thanks for squashing -- the migration looks clean.
My earlier note still applies:
wizard/mass_cancel_orders.pyis the only Python file without the license header (copyright + AGPL-3 notice). Not blocking, but would be nice to add for consistency with the rest of the module.Otherwise everything is solid: manifest, security, views, tests, and the cancel-button toggling via
disable_cancel_warningcontext all look good for 19.0.
Done! I copied the copyright notice from "wizard/sale_order_cancel_wizard.py". Should be fine like this, right?
BhaveshHeliconia
left a comment
There was a problem hiding this comment.
Functional review LGTM!
No description provided.